﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DiscoveryLogic.Common.Numeric
{
    /// <summary> Interface that represents a function object: a function that takes 
    /// a single argument and returns a single value.
    /// </summary>
    public interface IntFunction
    {
        /// <summary> Applies a function to an argument.
        /// 
        /// </summary>
        /// <param name="argument">  argument passed to the function.
        /// </param>
        /// <returns> the result of the function.
        /// </returns>
        int apply(int argument);
    }
}
